/***************************************************************************
 *   Copyright (C) 2008 by Eduardo Gurgel Pinho                            *
 *   edgurgel@gmail.com                                                    *
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program; if not, write to the                         *
 *   Free Software Foundation, Inc.,                                       *
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
***************************************************************************/

#include "grid.h"

namespace Sirat {

namespace Common {

Grid::Grid(const unsigned short& _width,const unsigned short& _height,const Math::Vector& _position,const Math::Vector& _x,const Math::Vector& _y,const Math::Vector& _z) : width(_width), height(_height), position(_position) , x(_x) , y(_y), z(_z) { 

}

Grid::Grid() { }

Grid::Grid(const Grid& _grid) {
	width = _grid.width;
	height = _grid.height;
	position = _grid.position;
	x = _grid.x;
	y = _grid.y;
	z = _grid.z;
}

Grid::~Grid() { }

unsigned short Grid::get_width() const { return width; }

unsigned short Grid::get_height() const { return height; }

Math::Vector Grid::get_position() const { return position; }

Math::Vector Grid::get_x() const { return x; }

Math::Vector Grid::get_y() const { return y; }

Math::Vector Grid::get_z() const { return z; }

void Grid::set_width(const unsigned short& _width) { width = _width; }

void Grid::set_height(const unsigned short& _height) { height = _height; }

void Grid::set_position(const Math::Vector& _position) { position = _position; }

void Grid::set_x(const Math::Vector& _x) { x = _x; }

void Grid::set_y(const Math::Vector& _y) { y = _y; }

void Grid::set_z(const Math::Vector& _z) { z = _z; }

Grid& Grid::operator=(const Grid& _grid) {
	width = _grid.width;
	height = _grid.height;
	position = _grid.position;
	x = _grid.x;
	y = _grid.y;
	z = _grid.z;
	return *this;
}

}

}

